import request from '@/utils/request'

export default {
    pagePush(current, limit, obj) {
        return request({
            url: `/course/push-schedule/pagePush/${current}/${limit}`,
            method: 'post',
            data: obj
        })
    },

    getPushById(id, isContainCourse = false, isContainClass = false) {
        return request({
            url: `/course/push-schedule/getPushById/${id}`,
            method: 'get',
            params: {
                isContainCourse,
                isContainClass
            }
        })
    },

    saveOrUpdatePush(obj) {
        return request({
            url: `/course/push-schedule/saveOrUpdatePush`,
            method: 'post',
            data: obj
        })
    },

    deletePush(obj) {
        return request({
            url: `/course/push-schedule/deletePush`,
            method: 'post',
            data: obj
        })
    },

    addCourseToPush(obj) {
        return request({
            url: `/course/push-schedule/addCourseToPush`,
            method: 'post',
            data: obj
        })
    },

    deleteCoursePush(courseId, pushId) {
        return request({
            url: `/course/push-schedule/deleteCoursePush/${courseId}/${pushId}`,
            method: 'delete',
        })
    },

    addClassToPush(obj) {
        return request({
            url: `/course/push-schedule/addClassToPush`,
            method: 'post',
            data: obj
        })
    },

    deleteClassPush(classId, pushId) {
        return request({
            url: `/course/push-schedule/deleteClassPush/${classId}/${pushId}`,
            method: 'delete',
        })
    },


    getCourseNotInPush(current, limit, pushId, obj) {
        return request({
            url: `/course/push-schedule/getCourseNotInPush/${current}/${limit}/${pushId}`,
            method: 'post',
            data: obj
        })
    },

    getClassNotInPush(current, limit, pushId, obj) {
        return request({
            url: `/course/push-schedule/getClassNotInPush/${current}/${limit}/${pushId}`,
            method: 'post',
            data: obj
        })
    },






}






